Fibonacci series program in c language Get link Facebook X Pinterest Email Other Apps December 31, 2018 #include<stdio.h>#include<conio.h>void main(){ int i,a=0,b=1,c,n; clrscr(); printf("Enter the limits:"); scanf("%d",&n); for(i=1;i<=n;i++) { printf("%d ",a); c=a+b; a=b; b=c; } getch();} Get link Facebook X Pinterest Email Other Apps Comments AnonymousJanuary 18, 2019 at 2:35 AMSo simple thanks ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
Change of the image using touchable opacity in react-native August 10, 2020 1. Below Are The Lines Of Source Code Of React-Native import React, { Component, useState } from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Alert, Modal, Text, StatusBar, TouchableOpacity, TouchableHighlight, TextInput, FlatList, Button, Image } from 'react-native'; class App extends React.Component { constructor(props) { super(props); this.state = { isBlack: true, isBlue: false, } } handleChange = (bool) => { if (bool) this.setState({ isBlack: true, isBlue: false }) else this.setState({ isBlack: false, isBlue: true }) } render() { const { isBlack, isBlue } = this.state; return ( <View style={styles.container}> <... Read more
Add values in array using React-native August 18, 2020 1. Below Are The Lines Of Source Code Of React-Native import { StyleSheet, Text, View, Alert, TouchableOpacity, ScrollView, Platform, TextInput } from 'react-native'; import React, { Component } from 'react'; class Practice extends React.Component { constructor(props) { super(props); this.collection = [ { carBrand: 'suzuki', carName: 'Baleno' }, { carBrand: 'tata', carName: 'Nexon' } ], this.arr = []; this.state = { name: '', forAdd: [] } } addfn() { this.arr.push(String(this.state.name)) this.setState({ ... Read more
So simple thanks
ReplyDelete