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
Write a program to compute Fahrenheit from centigrade (f=1.8*c +32) November 30, 2018 #include<stdio.h> int main() { float celcius, fahrenheit; printf("\nEnter temp in Celcius : "); scanf("%f", &celcius); fahrenheit = (1.8 * celcius) + 32; printf("\nTemperature in Fahrenheit : %f ", fahrenheit); return (0); } Read more
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
So simple thanks
ReplyDelete