Posts

Showing posts from June, 2016

Simple Tasks on numbers - C programming

Task 01 Write a program to read two integers with the following significance. The first integer value represents a time of day on a 24 hour clock, so that 1245 represents quarter to one mid-day, for example. The second integer represents time duration in a similar way, so that 345 represents three hours and 45 minutes. This duration is to be added to the first time, and the result printed out in the same notation, in this case 1630 which is the time 3 hours and 45 minutes after 12.45. #include <stdio.h> int main(){ int time,duration,end_time; printf("Enter the start time: "); scanf("%d",&time); printf("Enter the duration: "); scanf("%d",&duration); int count=0; if(duration>60){ while(duration>60){ duration=duration-60; count++; } } int hours,minutes; hours=(time/100+count)*100; //(duration/60); minutes=time%100+duration; end_time=hours+minutes; if(end_time>=2400){ end_tim

Self learning

I just finished my basic lessons in HTML tutorials. And next tutorials basics about HTML5 as wel python3.

Solo learn tutorials

I started to learn HTML tutorials on  www.sololearn.com .It is somewhat excited when doing self learning. I am interested to those things now. I had nothing about computers, languages or other stuff. I am trying to know the stuff in this filed. It's not only because I want to be an engineer, I love to learn these stuff since it makes me happy.